package com.xnyzc.lhy.mis.controller.cmsapi.user.wallet;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.mis.entity.param.cms.user.wallet.CmsOacUserOrderPaymentParam;
import com.xnyzc.lhy.mis.service.cms.user.wallet.IOacUserOrderPaymentRecordService;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 订单流水记录管理
 * @Author conglijuan
 * @Date 2019-08-20 16:13
 **/
@RestController
@RequestMapping(value = "cmsapi/order/payment")
public class OacUserOrderPaymentRecordController {

    @Autowired
    private IOacUserOrderPaymentRecordService iOacUserOrderPaymentRecordService;


    /**
     * 获取订单流水列表
     * @return
     */
    @PostMapping(value = "getOrderPaymentRecordList")
    public Rv getOrderPaymentRecordList(@ApiParam(name = "cmsOacUserOrderPaymentParam", value = "入参") @RequestBody CmsOacUserOrderPaymentParam cmsOacUserOrderPaymentParam){
        return iOacUserOrderPaymentRecordService.getOrderPaymentRecordList(cmsOacUserOrderPaymentParam);
    }

    /**
     * 导出
     * @return
     */
    @PostMapping(value = "exportOrderPaymentExcel")
    public Rv exportOrderPaymentExcel(@RequestBody CmsOacUserOrderPaymentParam cmsOacUserOrderPaymentParam){
        return iOacUserOrderPaymentRecordService.exportOrderPaymentExcel(cmsOacUserOrderPaymentParam);
    }
}
